<template>
  <div class="h5-wrapper">
    <div class="content">
      <keep-alive>
        <router-view></router-view>
      </keep-alive>
    </div>
    <nav class="tabbar">
      <a href="#/index">首页</a>
      <a href="#/find">找房</a>
      <a href="#/search">资讯</a>
      <a href="#/my">我的</a>
    </nav>

    <!-- <van-tabbar v-model="active">
  <van-tabbar-item icon="home-o"><a href="#/article">首页</a></van-tabbar-item>
  <van-tabbar-item icon="search"><a href="#/collect">找房</a></van-tabbar-item>
  <van-tabbar-item icon="setting-o"><a href="#/like">资讯</a></van-tabbar-item>
  <van-tabbar-item icon="friends-o"><a href="#/user">我的</a></van-tabbar-item>
</van-tabbar> -->
  </div>
</template>

<script>
export default {
  name: 'LayoutPage',
    data() {
    return {
      active: 0,
    };
  },
}
</script>

<style>
body{
  margin: 0;
  padding: 0;
}
</style>
<style lang="less" scoped>
.h5-wrapper {
  .content {
    margin-bottom: 51px;
  }
  .tabbar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    display: flex;
    background: #fff;
    border-top: 1px solid #e4e4e4;
    a {
      flex: 1;
      text-decoration: none;
      font-size: 14px;
      color: #333;
      -webkit-tap-highlight-color: transparent;
      &.router-link-active {
        color: #fa0;
      }
    }
  }
}
</style>